import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/sys/courses/list',
    method: 'get',
    params
  })
}

export function edit(data) {
  return request({
    url: '/sys/courses/edit',
    method: 'post',
    data
  })
}

export function create(data) {
  return request({
    url: '/sys/courses/create',
    method: 'post',
    data
  })
}

export function getDirectorCourses() {
  return request({
    url: '/sys/courses/director',
    method: 'get'
  })
}
